﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Sworm
{
    [Serializable]
    public abstract class SwormException : Exception
    {
        public SwormException() { }
        public SwormException(string message) : base(message) { }
    }

    [Serializable]
    public class MissingPrimaryKeyException : SwormException
    {
        public MissingPrimaryKeyException() { }
        public MissingPrimaryKeyException(string message) : base(message) { }
    }

    [Serializable]
    public class InvalidMetadataException : SwormException
    {
        public InvalidMetadataException() { }
        public InvalidMetadataException(string message) : base(message) { }
    }

    [Serializable]
    public class InvalidQueryException : SwormException
    {
        public InvalidQueryException() { }
        public InvalidQueryException(string message) : base(message) { }
    }

    [Serializable]
    public class InvalidDbCastException : InvalidCastException
    {
        public InvalidDbCastException() : base() { }
        public InvalidDbCastException(string message, Exception innerException) : base(message, innerException) { }
    }
}
